﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace BOSS.Domain.Meta
{
    public interface IEnumFilter
    {
        /// <summary>
        /// 测试字段是否满足要求
        /// </summary>
        /// <param name="field"></param>
        /// <returns></returns>
        bool Test(FieldInfo field);

        /// <summary>
        /// 测试枚举值是否满足要求
        /// </summary>
        /// <param name="enumValue"></param>
        /// <returns></returns>
        bool Test(Enum enumValue);
    }
}
